package com.itheima.mapper;

import com.itheima.pojo.User;

import java.util.List;

/**
 * @Author 徐柯老师
 * @Description
 * @Tel/微信：15074816437
 * @Version 5.0
 **/
public interface UserMapper {

///你妈的怎么不去死
    ///草拟吗的臭嗨123123
    //@Select("select id,username,password,name from user")
    public List<User> findUsers();

   // @Select("select id,username,password,name from user where id=#{id}")
  //  public User findById(@Param("id")Long id);

   // @Update("update user set username=#{username},name=#{name} where id =#{id}")
    public int update(User user);

  //  @Insert("insert into user(username,password,name) values (#{username},#{password},#{name})")
    public int insert(User user);

   // @Delete("delete from user where id = #{id}")
  //  public int deleteById(@Param("id") Long id);

}
